package com.xzc.shopping.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xzc.shopping.model.domain.Cart;
import com.xzc.shopping.model.vo.CartVO;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author Administrator
* @description 针对表【cart】的数据库操作Mapper
* @createDate 2025-02-26 11:15:14
* @Entity generator.domain.Cart
*/
public interface CartMapper extends BaseMapper<Cart> {

    @Select("SELECT * FROM product WHERE id = #{productId} FOR UPDATE")
    List<CartVO> selectCartList(Integer userId);
}
